<?php

namespace app\logic\service\alarm;

/**
 * 七猫警报
 * Class QiCatAlarmLogic
 * @package app\logic\service
 */
class QiCatAlarmLogic extends AlarmLogic
{
    public function __construct()
    {
        parent::__construct();
    }

    public static function getInstance(): QiCatAlarmLogic
    {
        return new self();
    }

    public function errorAlarm($data, $file, $line)
    {
        $token = config('param.qi_cat_token');
        $msg = <<<TEXT
错误码：{$data['code']}
错误提示：{$data['message']}
qi_cat_token：{$token}
文件：{$file}
行数：{$line}
TEXT;

        return parent::sendFeiShuNotify($msg);
    }


}